<form>
    <fieldset>
        <legend>商品信息</legend>
        <label for="gopen_id">商品ID</label>
        <input type="text" name="gopen_id" id="gopen_id" value="<?php echo $r['gopen_id'] ?>" readonly/><br/>
        <label for="goodsName">商品名</label>
        <input type="text" name="goodsName" id="goodsName" value="<?=$r['name'];?>" readonly/><br/>
        <label for="shop_id">所属商家</label>
        <input type="text" name="shop_id" id="shop_id" value="<?php echo $r['shop']['company'] ?>" readonly/><br/>
        <label for="goods_cat_id">所属分类</label>
        <input type="text" name="goods_cat_id" id="goods_cat_id" value="<?php echo $r['cat']['name'] ?>" readonly/><br/>
        <label for="tip_id">买家须知</label>
        <input type="text" name="tip_id" id="tip_id" value="<?php echo $r['tip_title'] ?>" readonly/><br/>

        <label for="price_id">价格</label>
        <?php if(!empty($r['price']['low'])){ ?>
            <?=$r['price']['low']?>件以下
        <?php } ?>
        <?=$r['price']['base_price'] ?>&nbsp;&nbsp;
        <?php if(!empty($r['price']['medium'])){ ?>|
            <?=$r['price']['low'].'-'.$r['price']['medium']?>件￥<?=$r['price']['medium_price']?>&nbsp;&nbsp;
        <?php }?>
        <?php if(!empty($r['price']['high'])){ ?>|
            <?=$r['price']['high']?>件以上￥<?=$r['price']['high_price']?>
        <?php }?>
        <br/>

        <label for="bonus">推广分成</label>
        <input type="text" name="bonus" id="bonus" value="<?php echo $r['bonus'] ?>" readonly/><br/>
        <label for="commission">代购分成</label>
        <input type="text" name="commission" id="commission" value="<?php echo $r['commission'] ?>" readonly/><br/>
        <label for="service_fee">服务站服务费</label>
        <input type="text" name="service_fee" id="service_fee" value="<?php echo $r['service_fee'] ?>" readonly/><br/>
        <label for="label_ids">所属标签</label>
        <?php foreach($r['label'] as $l){?>
            <?php echo $l['name'];?>
        <?php }?><br/>
        <label for="stock">库存</label>
        <input type="text" name="stock" id="stock" value="<?=$r['stock'];?>" readonly/><br/>
    </fieldset>
    <fieldset>
        <legend>详细描述</legend>
        <div><?=$r['detail'];?></div>
    </fieldset>
</form>